projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49fed3d
)
Copy GtkWidgetPaths correctly
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 19 Nov 2010 04:35:00 +0000
(23:35 -0500)
committer
Carlos Garnacho
<carlosg@gnome.org>
Sat, 4 Dec 2010 14:39:17 +0000
(15:39 +0100)
The code was forgetting to copy class information.
gtk/gtkwidgetpath.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidgetpath.c
b/gtk/gtkwidgetpath.c
index dfd2afe824ec92825c02e79d6d30765545de947e..88d2b6dc19a3904587aa8bb95f91439b2c709739 100644
(file)
--- a/
gtk/gtkwidgetpath.c
+++ b/
gtk/gtkwidgetpath.c
@@
-160,6
+160,12
@@
gtk_widget_path_copy (const GtkWidgetPath *path)
g_hash_table_insert (new.regions, key, value);
}
+ if (elem->classes)
+ {
+ new.classes = g_array_new (FALSE, FALSE, sizeof (GQuark));
+ g_array_append_vals (new.classes, elem->classes->data, elem->classes->len);
+ }
+
g_array_append_val (new_path->elems, new);
}